package com.zero.activiti.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@TableName("sys_job")
public class SysJob extends Model<SysJob> {

    @TableId(value = "id",type = IdType.AUTO)
    private String id;

    /**
     * 描述任务
     */
    @TableField("job_name")
    private String jobName;

    /**
     * 任务表达式
     */
    private String cron;

    /**
     * 状态:0未启动false/1启动true
     */
    private Boolean status;

    /**
     * 任务执行方法
     */
    @TableField("clazz_path")
    private String clazzPath;

    /**
     * 其他描述
     */
    @TableField("job_desc")
    private String jobDesc;

    @TableField("create_by")
    private String createBy;

    @TableField("create_date")
    private Date createDate;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_date")
    private Date updateDate;
}